package com.zy.serivice.impl;

import com.zy.bean.TPermission;
import com.zy.mapper.TPermissionMapper;
import com.zy.service.TPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: zy 690748807@qq.com
 * @Description: TODO
 * @Date: 2023/12/24 21:49
 * @Version: 1.0
 * @name 方法名字：
 */
@Service
public class TPermissionServiceImpl implements TPermissionService {
    @Autowired
    TPermissionMapper tPermissionMapper;

    @Override
    public List<TPermission> listAllPermissionTree() {
        List<TPermission> tPermissions = tPermissionMapper.selectByExample(null);
        return tPermissions;
    }
}
